var lunboImgesUrl = "";

function saveLierature() {
    if($("#literatureName").val() == null||$("#literatureName").val()==""){
        alert("标题不可为空");
        return;
    }
    if(lunboImgesUrl == null||lunboImgesUrl==""){
        alert("文献文件不能为空");
        return;
    }
    var data = {
        literatureName:$("#literatureName").val(),
        fileUrl:lunboImgesUrl,
        literatureDesc:$("#literatureDesc").val(),
    };
    $.ajax({
        url: prefixUrl + "literature/addliterature",
        type: "post",
        data: JSON.stringify(data),
        contentType: "application/json;",
        success: function (data) {
            alert(data.msg);
        }
    })
}